package com.pingan.springboot_es_api.controller;

import com.pingan.springboot_es_api.domain.Filters;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {
    @GetMapping("/helloworld")
    public String HelloWorld(){

        return "Hello World".toString();
    }

//    @PostMapping("/user")
//    public Object passUser(@RequestBody User user)
//    {
//        return user;
//    }

    @PostMapping("/filter")
    public Object passFilter(@RequestBody Filters filter){
        return filter;
    }
}
